--[[
	Minimap code stolen from; http://www.wowinterface.com/forums/showthread.php?t=2762
	www.fh-wow.com/firehack/API.lua
]]--
ccR_Settings = {
	MinimapPos = 45
}
function ccR_MinimapButton_Reposition()
	ccR_MinimapButton:SetPoint("TOPLEFT","Minimap","TOPLEFT",52-(80*cos(ccR_Settings.MinimapPos)),(80*sin(ccR_Settings.MinimapPos))-52)
end
function ccR_MinimapButton_DraggingFrame_OnUpdate()
	local xpos,ypos = GetCursorPosition()
	local xmin,ymin = Minimap:GetLeft(), Minimap:GetBottom()
	xpos = xmin-xpos/UIParent:GetScale()+70 
	ypos = ypos/UIParent:GetScale()-ymin-70
	ccR_Settings.MinimapPos = math.deg(math.atan2(ypos,xpos))
	ccR_MinimapButton_Reposition()
end